package com.burst.reptile.modular.zp.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.burst.reptile.framework.aspectj.lang.annotation.Excel;
import com.burst.reptile.framework.aspectj.lang.annotation.Excel.ColumnType;
import com.burst.reptile.framework.aspectj.lang.annotation.Excel.Type;

import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wujin
 * @since 2020-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_label")
public class ZpLabel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "label_id", type = IdType.AUTO)
    @Excel(name = "标签主键", cellType = ColumnType.NUMERIC)
    private Integer labelId;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签不能为空")
    @Size(min = 0, max = 15, message = "标签长度不能超过15个字符")
    @Excel(name = "标签名称")
    private String labelName;

    /**
     * 标签热度
     */
    @Excel(name = "标签热度")
    private Integer labelHeat;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    private LocalDateTime createTime;


}
